package com.iplay.thezen.command;

/**
 * @author dangwu
 * @since 2021/9/13 5:14 下午
 */
public class Client {
    public static void main(String[] args) {
        //声明调用者
        Invoker invoker = new Invoker();
        //定义接收者
        Receiver receiver = new ConcreteReceiver1();
        //定义发送给接收者的命令
        Command command = new ConcreteCommand1(receiver);
        //把命令交给调用者去执行
        invoker.setCommand(command);
        invoker.action();
    }
}
